package com.qinyunkj.searchchatserver.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

@Data
@Schema(description = "文章查询参数")
public class ArticleQuery {
    
    @Schema(description = "页码", defaultValue = "1")
    @Min(value = 1, message = "页码最小为1")
    private Integer pageNum = 1;
    
    @Schema(description = "每页大小", defaultValue = "10")
    @Min(value = 1, message = "每页大小最小为1")
    @Max(value = 100, message = "每页大小最大为100")
    private Integer pageSize = 10;
    
    @Schema(description = "关键词")
    private String keyword;
} 